package com.welab.task3.enumeration;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

/**
 * @author dammein.yuan
 * @version v1.0
 * @Title: com.welab.task3.enumeration
 * @Description: 返回结果封装
 * @Copyright: © 2020 ***
 * @Company: ***有限公司
 * @date 2020-3-9
 */

@Getter
public enum StatusEnum {
    PARAMERROR(10001,"参数错误"),
    LOGINTIMEOUT(10002,"登录状态失效"),
    USERNOTEXISTS(10003,"用户不存在"),
    USEREXISTS(10004,"用户已注册"),
    UNKNOWNEXCEPTION(500,"未知错误"),
    SUCCESS(0,"success"),
    FAIL(99,"fail"),

    ;

    StatusEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    private Integer code;
    private String msg;




}
